//
//  CustomCell.m
//  TruckDriver
//
//  Created by Ting Han on 2017/10/9.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "CustomCell.h"

@implementation CustomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



@end

@implementation UITableView (CustomCell)
- (__kindof CustomCell *)dequeueReusableCellWithIdentifier:(NSString *)reuseIndentifier forIndexPath:(NSIndexPath *)indexPath withController:(UIViewController *)controller{
    CustomCell *cell = [self dequeueReusableCellWithIdentifier:reuseIndentifier forIndexPath:indexPath];
    cell.indexPath = indexPath;
    cell.tableView = self;
    cell.controller = controller;
    return cell;
}
@end

